﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Forget</title>

    <!-- Sweet Alert -->
    <link href="~/Content/Version/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">



    <link href="~/Content/Version/css/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Content/Version/font-awesome/css/font-awesome.css" rel="stylesheet">

    <link href="~/Content/Version/css/animate.css" rel="stylesheet">
    <link href="~/Content/Version/css/style.css" rel="stylesheet">
    <link href="~/Content/Login/css/login.css" rel="stylesheet" />

</head>
<body>

    <div class="passwordBox animated fadeInDown">
        <div class="row">

            <div class="col-md-12">
                <div class="ibox-content">
                    <h2 class="font-bold">忘记密码</h2>
                    <p>
                        输入您的电子邮件地址和账号，您的密码将重置并通过电子邮件发送给您邮件账户。
                    </p>
                    <div class="row">

                        <div class="col-lg-12">
                            <form class="m-t" role="form" action="#">
                                <div class="form-group">
                                    <input type="email" id="email" class="form-control" placeholder="电子邮件地址" required="">
                                </div>
                                <div class="form-group">
                                    <input type="text" id="id" class="form-control" placeholder="账户" required="">
                                </div>

                                <button type="button" onclick="getTi()" class="btn btn-primary block full-width m-b demo2">确定</button>
                                <div class="layui-form-item">
                                    <a href="/Login/Index" class="layui-link pull-right">返回登录</a>
                                </div>

                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
<script src="~/Content/Version/js/jquery-3.1.1.min.js"></script>
<script src="~/Content/Version/js/popper.min.js"></script>
<script src="~/Content/Version/js/bootstrap.js"></script>
<script src="~/Content/Version/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="~/Content/Version/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

<!-- Custom and plugin javascript -->
<script src="~/Content/Version/js/inspinia.js"></script>
<script src="~/Content/Version/js/plugins/pace/pace.min.js"></script>

<!-- Sweet alert -->
<script src="~/Content/Version/js/plugins/sweetalert/sweetalert.min.js"></script>

<script>
    //提交
    function getTi() {
        $.ajax({
            url: "/Login/Ti",
            data: {
                email: $("#email").val(),
                id: $("#id").val()
            },
            success: function (res) {
                if (res == 1) {
                    swal({
                        title: "邮件！",
                        text: "已发送",
                        type: "success"
                    });
                }
                else {
                    swal("错误", "账号不正确", "error");
                }
            }
        })

    }

    function TuiC() {
        window.location.href = '/Login/Index';
    }

</script>

